import request from '@/utils/request'

// 查询陪护服务订单列表
export function listServerorder(query) {
  return request({
    url: '/system/serverorder/list',
    method: 'get',
    params: query
  })
}

// 查询陪护服务订单详细
export function getServerorder(orderId) {
  return request({
    url: '/system/serverorder/' + orderId,
    method: 'get'
  })
}

// 新增陪护服务订单
export function addServerorder(data) {
  return request({
    url: '/system/serverorder',
    method: 'post',
    data: data
  })
}

// 修改陪护服务订单
export function updateServerorder(data) {
  return request({
    url: '/system/serverorder',
    method: 'put',
    data: data
  })
}

// 删除陪护服务订单
export function delServerorder(orderId) {
  return request({
    url: '/system/serverorder/' + orderId,
    method: 'delete'
  })
}
